/* 
 * File:   VirSoket.h
 * Author: kisme
 *
 * Created on May 24, 2010, 2:41 PM
 */

#ifndef _SOCKET_BASE_H
#define	_SOCKET_BASE_H

// exit..
#include <stdlib.h>
// sockaddr_in..
#include <netinet/in.h>
// bzero..
#include <string.h>
// setNonblocking..
#include <fcntl.h>
// printf..
#include <stdio.h>

enum SOCKET_RETURN_STATE
{
    SOCKET_DEFAULT_SUCCESS = 1,
    SOCKET_DEFAULT_FAILED = -1
};

class Socket_Base
{
public:
    /**
     * configure the socket's working mode
     */
    int setNonblocking(int sockfd);
    /**
     * construction
     */
    Socket_Base();
    virtual ~Socket_Base();
};


#endif	/* _SOCKET_H */